package com.david.service.feign.client;


/**
 * 暴露的api
 */

import com.david.service.hystrixs.OrderClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Component
@FeignClient(name = "IMD-BLOG-SERVICE", fallback = OrderClientFallBack.class)
public interface OrderClient {

    @RequestMapping(method = RequestMethod.GET, value = "/get")
    String get() throws Exception;

    @RequestMapping(method = RequestMethod.GET, value = "/ad")
    String ad() ;
}
